package unity.messenger.security.exceptions;

import unity.messenger.exceptions.UnityMessengerException;

public class CipherCreationException extends UnityMessengerException 
{
	private static final long serialVersionUID = -1068445440990761094L;

	public static enum Error
	{
		INVALID_ALGORITHM,
		INVALID_PADDING_SCHEME,
	}

	private Error error;
	
	public CipherCreationException() {
	}

	public CipherCreationException(String arg0) {
		super(arg0);
	}

	public CipherCreationException(Throwable arg0) {
		super(arg0);
	}

	public CipherCreationException(String arg0, Throwable arg1) {
		super(arg0, arg1);
	}

	public Error getError()
	{
		return this.error;
	}
	
	public CipherCreationException setError(Error error)
	{
		this.error = error;
		return this;
	}
}
